
#ifndef _MEMBER_BRESTRAINT_H_
#define _MEMBER_BRESTRAINT_H_

#include <BRestraint>

#define restraint_member(restraint)		((member_BRestraint*)((BRestraint*)restraint)->_ptr)

namespace BWE
{
	class member_BRestraint
	{
	public:
		member_BRestraint(BRestraint* restraint);
		~member_BRestraint();

		BRestraint*			boss;
		BGroup*				group;
		BHolder<BBody>		bodyA;
		BVector				pivotA;
		BHolder<BBody>		bodyB;
		BVector				pivotB;
		bool				colliding;
		BReal				breakImpulse;
	};
}

#endif
